#!/bin/sh

target=$1
shift 1
for i in $@; do
	objcopy --prefix-symbols "__LD_" $i ${i}_ref.o;
	ar r ${target} ${i}_ref.o
	rm ${i}_ref.o;
done
